package com.atguigu.spring5.proxy;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author : wenchao.long
 * @date : Created in 2020/10/30 7:59 周五
 * @description :
 */
@Component
@Aspect
@Order(1)
public class UserAgainProxy {

    @Before("execution(* com.atguigu.spring5.bean.User.add())")
    public void before() {
        System.out.println("UserAgainProxy Before...");
    }
}
